﻿using System.ComponentModel.DataAnnotations;

namespace OurWedding1.Models
{

    [MetadataType(typeof(GuestInExpenseBuddy))]
    public partial class GuestInExpense
    {

    }

    public class GuestInExpenseBuddy
    {
        [Display(Name = "GuestInExpense_GuestId", ResourceType = typeof(Resources))]
        [Required(ErrorMessageResourceType = typeof (Resources), ErrorMessageResourceName = "GuestInExpense_GuestId_Required")]
        public int GuestId { get; set; }

        [Display(ResourceType = typeof (Resources), Name = "GuestInExpense_ExpenseId")]
        [Required(ErrorMessageResourceType = typeof (Resources), ErrorMessageResourceName = "GuestInExpense_ExpenseId_Required")]
        public int? ExpenseId { get; set; }

        [Display(ResourceType = typeof (Resources), Name = "GuestInExpense_Discount")]
        [DisplayFormat(ApplyFormatInEditMode = false, DataFormatString = "{0:P0}")]
        [Required(ErrorMessageResourceType = typeof (Resources), ErrorMessageResourceName = "GuestInExpense_Discount_Required")]
        public decimal Discount { get; set; }

        [Display(ResourceType = typeof (Resources), Name = "GuestInExpense_Comment")]
        [DataType(DataType.MultilineText)]
        public string Comment { get; set; }

        [Display(ResourceType = typeof (Resources), Name = "GuestInExpense_Guest")]
        public virtual Guest Guest { get; set; }

        [Display(ResourceType = typeof (Resources), Name = "GuestInExpense_ExpenseId")]
        public virtual Expense Expens { get; set; }

    }
}